package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

type DanceComposePropChangeLog struct {
	Id                int64          `json:"id" gorm:"primaryKey;autoIncrement;comment:临时用的，测试阶段，记录用户信息得，后面要删除掉"`
	UserId            string         `json:"userId" gorm:"column:user_id;type:varchar(255);not null;default:'';comment: 用户id"`
	PropNo            int64          `json:"propNo" gorm:"column:prop_no;type:bigint;default:0;not null;comment:道具No"`
	PropNumber        int64          `json:"propNumber" gorm:"column:prop_number;type:bigint;default:0;not null;comment:道具数量"`
	Source            int64          `json:"source" gorm:"column:source;type:bigint;default:0;not null;comment:获取来源 1:抽奖直接获得;2:抽奖抽到了服饰，自动兑换成碎片获得;3:商城兑换奖品减少 4.他人赠送获得 5 赠送他人减少 6补发添加 7补发减少 8.兑换星光值减少"`
	ActivityId        int64          `json:"activity_id" gorm:"column:activityId;type:bigint;default:0;not null;comment:活动id"`
	ChangeType        int            `json:"changeType" gorm:"column:change_type;type:tinyint;default:0;not null;comment:数据类型 1:增 2:减产"`
	ElementNo         int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:抽到的服饰，换成道具的原服饰，只有2的时候才会有值"`
	ElementNoChange   int64          `json:"elementNoChange" gorm:"column:element_no_change;type:bigint;default:0;not null;comment:兑换商城，被兑换的奖品"`
	ValidityPeriod    int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:兑换商城: 被兑换的服饰有效时长"`
	GiveUserId        string         `json:"GiveUserId" gorm:"column:give_user_id;type:varchar(255);not null;default:'';comment: 赠送人用户id"`
	ReceiveUserId     string         `json:"ReceiveUserId" gorm:"column:receive_user_id;type:varchar(255);not null;default:'';comment: 被赠送人用户id"`
	CurrentPropNumber int64          `json:"currentPropNumber" gorm:"column:current_prop_number;type:bigint;default:0;not null;comment:当前背包道具数量"`
	UpdatedPropNumber int64          `json:"updatedPropNumber" gorm:"column:updated_prop_number;type:bigint;default:0;not null;comment:更新后背包道具数量"`
	Score             int64          `json:"score" gorm:"column:score;type:bigint;default:0;not null;comment:兑换的星光值数量"`
	CreatedAt         time.Time      `json:"createdAt" gorm:"column:created_at;type:datetime"`
	UpdatedAt         time.Time      `json:"updatedAt" gorm:"column:updated_at;type:datetime"`
	DeletedAt         gorm.DeletedAt `json:"-" gorm:"index;type:datetime"`
}
